class TradeEntity {
	String payType;
	double money;
	String orderId;
	int id;
	String dirType;
	String userId;
	String createAt;
	String tradeType;
	String tradeDesc;
	String status;

	TradeEntity({this.payType, this.money, this.orderId, this.id, this.dirType, this.userId, this.createAt, this.tradeType, this.tradeDesc, this.status});

	TradeEntity.fromJson(Map<String, dynamic> json) {
		payType = json['payType'];
		money = json['money'];
		orderId = json['orderId'];
		id = json['id'];
		dirType = json['dirType'];
		userId = json['userId'];
		createAt = json['createAt'];
		tradeType = json['tradeType'];
		tradeDesc = json['tradeDesc'];
		status = json['status'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['payType'] = this.payType;
		data['money'] = this.money;
		data['orderId'] = this.orderId;
		data['id'] = this.id;
		data['dirType'] = this.dirType;
		data['userId'] = this.userId;
		data['createAt'] = this.createAt;
		data['tradeType'] = this.tradeType;
		data['tradeDesc'] = this.tradeDesc;
		data['status'] = this.status;
		return data;
	}
}
